import Vue from 'vue'
import Router from 'vue-router'
import routes from './routers'
import Setting from '@/setting';

Vue.use(Router)

const router = new Router({
    routes,
     mode: Setting.routerMode
})

router.afterEach(to => {
    // if (Setting.showProgressBar) iView.LoadingBar.finish()
    // 更改标题
    //setTitle(to, router.app)
    // 返回页面顶端
   // window.scrollTo(0, 0)
})

export default router